﻿
namespace MsmqView.Core.Messaging
{
	public class MessageIdentifier
	{
		private readonly string fullIdentifier;
		private readonly string friendlyIdentifier;

		public string FullIdentifier
		{
			get { return fullIdentifier; }
		}

		public string FriendlyIdentifier
		{
			get { return friendlyIdentifier; }
		}

		public MessageIdentifier(string fullIdentifier)
		{
			this.fullIdentifier = fullIdentifier;

			friendlyIdentifier = fullIdentifier.Substring(fullIdentifier.IndexOf('\\') + 1);
		}
	}
}
